<template>
  <div class="categories">
    <div class="box">
      <div class="tit">
        <el-button type="primary" size="default">添加分类</el-button>
      </div>
      <div class="table">
        <h1>接口有问题报错：属性类型必须设置</h1>
        <el-table :data="tableData" style="width: 100%">
          <el-table-column prop="date" label="#" width="50" />
          <el-table-column prop="name" label="分类名称" width="180" />
          <el-table-column prop="address" label="是否有效" />
          <el-table-column prop="address" label="排序" />
          <el-table-column prop="address" label="操作" />
        </el-table>
      </div>
      <div class="paging">分页</div>
    </div>
  </div>
</template>

<script lang="ts" setup>
// import { parameter } from '@/api/parameterTable'
const tableData = ref()
// interface parameterData {
//   data: {
//     data: {
//       attr_id: number
//     }
//   }
// }
// const getparameter = async () => {
//   const res = (await parameter({ id: 6, sel: 'only' })) as parameterData
//   tableData.value = res.data.data
// }
// onMounted(() => {
//   getparameter()
// })
</script>

<style scoped lang="scss"></style>
